import { Module } from '@nestjs/common';
import { MenuService } from './menu.service';
import { MenuResolver } from './menu.resolver';
import { MongooseModule } from '@nestjs/mongoose';
import { ConfigModule } from '@nestjs/config';
import { Menu, MenuSchema } from './entities/menu.entity';

@Module({
  providers: [MenuResolver, MenuService],
  exports: [MenuService],
  imports: [
    MongooseModule.forFeature([{ name: Menu.name, schema: MenuSchema }]),
    ConfigModule.forRoot({
      cache: true,
    }),
  ],
})
export class MenuModule { }
